package com.练习案例.多线程抽奖并求取最大值;
import java.util.ArrayList;
import java.util.Collections;

public class ThreadDemo {
    public static void main(String[] args) throws InterruptedException {
        ArrayList<Integer> list=new ArrayList<>();
        Collections.addAll(list,10,5,6,12,30);

        MyThread t1=new MyThread(list);
        MyThread t2=new MyThread(list);

        t1.setName("1");
        t2.setName("2");
        t1.start();
        t2.start();
    }
}

